package com.finder.im.server.user.controller;

import com.finder.im.common.ResponseVO;
import com.finder.im.server.user.model.req.ImportUserReq;
import com.finder.im.server.user.service.ImUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/v1/user")
public class ImUserController {

    @Autowired
    private ImUserService imUserService;

    @PostMapping("/importUser")
    public ResponseVO importUser(@RequestBody ImportUserReq req, @RequestParam("appId") Integer appId) {
        req.setAppId(appId);
        return imUserService.importUser(req);
    }
}
